package exo2;

import java.applet.*;
import java.awt.*;

/**
 * appletviewer -classic fic.html
 * 
 * @author fcamps
 *
 */


public class AppletCourbe extends Applet {

	 int inputInt1 ;
	 int inputInt2 ;	

	int width, height;

	public void init() {
		width = getSize().width;
		height = getSize().height;
		setBackground( Color.black );


		inputInt1 = Integer.parseInt(getParameter("w"));
		inputInt2 = Integer.parseInt(getParameter("f"));

	}

	public void paint( Graphics g ) {
		g.setColor( Color.green );
		
		g.drawLine( 0, 0,inputInt1 , inputInt2 );
		
		/*for ( int i = 0; i < 10; ++i ) {
			g.drawLine( width, height, i * width / 10, 0 );
		} */
	}
}
